package com.zero2oneblog.service;

import com.zero2oneblog.entity.ApiAccessStatistics;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author liangjiu
 * @since 2024-01-04
 */
public interface IApiAccessStatisticsService extends IService<ApiAccessStatistics> {
    void incrementAccessCountByAtomic(String apiName); //接口方法不能有主体{}

    void incrementAccessCountByDataBase(String apiName);

    void incrementAccessCountByAtomicTask(String apiName);

    void incrementAccessCountByRedis(String apiName);
    Long getAccessCount(String apiName);
}
